package org.jeecg.modules.demo.ipds.entity.dto;

import lombok.Data;

import java.util.Arrays;
import java.util.List;
import java.util.stream.Collectors;

@Data
public class CalculatedValueDto {

    private String id;

    private String type;


    public enum calculatedValueTypeEnum{
        MAX("max"),
        MIN("min"),
        random("random");

        private String type;

        calculatedValueTypeEnum(String name) {
            this.type = name;
        }

        public String getType() {
            return type;
        }

        // 获取枚举列表
        public List<calculatedValueTypeEnum> list(){
            return Arrays.stream(calculatedValueTypeEnum.values()).collect(Collectors.toList());
        }
    }
}
